#!/bin/bash

count=`ps -A | wc -l`
counts=`lsof -i| wc -l`

if [ $count -gt $1 ]
then
	echo there are more than $1 processes running \($count\)
else
	echo there are less than $1 processes running \($count\)
fi



if [ $counts -gt $2 ]
then
	echo there are more than $2 ports open \($counts\)
else
	echo there are less than $2 ports open \($counts\)
fi
